﻿using System.ComponentModel.DataAnnotations;
using ZGL.Api.Entity;

namespace ZGL.Api.Models.dto
{
    public class UserPutDto
    {
        public long UserId { get; set; }
        public ulong? CorpId { get; set; }
        [Required]
        public string? Username { get; set; }
        [Required]
        public string? Password { get; set; }

        public string? Realname { get; set; }

        public string? Station { get; set; }
        [Required]
        public string? Telephone { get; set; }

        public string? JobNum { get; set; }

        public string? Openid { get; set; }

        public string? PhotoUrl { get; set; }

        [Required]
        public long RoleId { get; set; }

        [Required]
        public virtual List<int> userRole { get; set; } = new List<int>();


    }
}
